package com.lengmou.service;

import com.lengmou.entity.Orders;
import org.springframework.core.annotation.Order;

import java.util.List;
import java.util.Map;

public interface OrdersService {
//    获取所有的订单
    public List<Orders> getAll();
//    获取指定用户的订单
    public List<Orders> getOrdersByUserid(int userid);
//    获取指定用户未付款的订单
    public List<Orders> getOrdersByUseridState(int userid,int state);
//    添加订单
    public int addOrders(Orders orders);
//    根据订单id获取订单
    public Orders getOrdersById(int id);
//    修改订单用户
    public int setOrdersUserid(Orders orders);
//    修改订单创建时间
    public int setOrdersCreateTime(Orders orders);
//    修改订单支付时间
    public int setOrdersPayTime(Orders orders);
//    修改订单备注
    public int setOrdersRemarks(Orders orders);
//    修改订单状态
    public int setOrdersState(Orders orders);
    //    删除订单
    public int deleteOrders(int id);
//    更新订单
    public int updateOrders(Orders orders);
//    查询订单
public List<Orders> search(Map<String,Object> map);

}
